package com.ai.ly.goodsautocat.autocat;

import com.ai.ly.goodsautocat.common.ISampleInfoBuilder;

public class AutoCatYValueBuilder implements ISampleInfoBuilder{

    private static final ISampleInfoBuilder builder=new AutoCatYValueBuilder();
    public static ISampleInfoBuilder getInstance() {
        return builder;
    }
    
    @Override
    public double getYValue(String catId) {
        int index=CatMap.getIndexByCatId(catId);
        double y=index;
        return y;
    }
    
    
    @Override
    public int getDictSize() {
        return DictMapOfAutoCat.getDictSize();
    }
    @Override
    public int getIndexOfWordInDict(String word) {
        return DictMapOfAutoCat.getIndexOfWordInDict(word);
    }

}
